/**
 * 
 */
package com.gxa.ssm251.service;


import com.gxa.ssm251.exception.BusinessException;
import com.gxa.ssm251.pojo.Admin;
import com.gxa.ssm251.pojo.City;
import com.gxa.ssm251.pojo.Order;

import java.util.List;

/**
 * User的业务层操作
 * @author bilei
 * @date 2021年3月31日
 */
public interface AdminService {
	

	
	Admin login(String name, String pwd) throws Exception;
	Integer setTime(Admin admin);
	Integer addAdmin(Admin admin) throws Exception;
	Integer deleteAdmin(Integer id);
	List<Admin> selectAllAdmin();
	Integer upStatus(Admin admin);

	Integer upAdmin(Admin admin);

	Admin selecAdmintByName(String name);

	Integer addLimit(Integer id, List<String> list);

	List selectAllLimits(Integer id);

	List<City> selectAllCity();

	Integer deleteCity(Integer id);

	Integer addCity(City city) throws Exception;


	Admin selectOnlyadmin(String email);

	Integer xiugai(String email, String pwd,String salt);
}
